package cn.wolfcode.shop.service;

import cn.wolfcode.shop.domain.OrderInfo;

import javax.jms.JMSException;

public interface ISeckillService {
    /**
     * 做秒杀时的相关操作
     * @param userId
     * @param goodId
     * @return
     */
    String doSeckill(Long userId, Long goodId);

    /**
     * 回补redis中的库存
     * @param goodId 商品id
     */
    void syncStock(Long goodId) throws JMSException;
}
